import { createBrowserRouter } from "react-router-dom";

import Home from '../pages/home/Index'
import Index from '../pages/index/Index'
import Hot from '../pages/hot/Index'
import Lan from '../pages/lan/Index'
import App from '../App'

export const tworouter=[
    {
        path:'/home',
        element:<Home></Home>,
        
    },
    {
        path:'/index',
        element:<Index></Index>
    },
    {
        path:'/hot',
        element:<Hot></Hot>
    },
    {
        path:'/lan',
        element:<Lan></Lan>
    }
]

export const router=createBrowserRouter([
    {
        path:'/',
        element:<App></App>,
        children:tworouter
    }
])

export default router;